import java.io.IOException;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;

@ManagedBean(name = "navigationBean")
@RequestScoped
public class NavigationBean {

	public void repository(ActionEvent actionEvent) {
		try {
			FacesContext.getCurrentInstance().getExternalContext()
					.redirect("repository.jsf");
		} catch (IOException ex) {
		}
	}

	public void search(ActionEvent actionEvent) {
		try {
			FacesContext.getCurrentInstance().getExternalContext()
					.redirect("search.jsf");
		} catch (IOException ex) {
		}
	}

	public void sessions(ActionEvent actionEvent) {
		try {
			FacesContext.getCurrentInstance().getExternalContext()
					.redirect("sessions.jsf");
		} catch (IOException ex) {
		}
	}

	public void trends(ActionEvent actionEvent) {
		try {
			FacesContext.getCurrentInstance().getExternalContext()
					.redirect("trends.jsf");
		} catch (IOException ex) {
		}
	}

	public void compare(ActionEvent actionEvent) {
		try {
			FacesContext.getCurrentInstance().getExternalContext()
					.redirect("compare.jsf");
		} catch (IOException ex) {
		}
	}

	public void about(ActionEvent actionEvent) {
		try {
			FacesContext.getCurrentInstance().getExternalContext()
					.redirect("about.jsf");
		} catch (IOException ex) {
		}
	}
}
